const express = require('express');
const app = express();

const cors = require("cors");
app.use(cors());

app.use(express.urlencoded({extended:false}))
app.use(express.json())


const getRouter = require("./26.编写接口get，post");
app.use('/api',getRouter); 

const postRouter = require("./26.编写接口get，post");
app.use("/api",postRouter);


app.listen('8081',function(){
    console.log("http://127.0.0.1:8081");
})